<extend name="base"/>
<block name="body">
<script language="javascript">$(document).ready(wechat_obj.material_one_init);</script>
<div id="material" class="r_con_wrap">
	<form id="material_form" method="post" action="{:U('Material/newsSave')}">                
	    <div class="m_lefter one">
	        <div class="title"><eq name="update" value="1">{$onenews.configs.Title}<else/>消息标题</eq></div>
	        <div><eq name="update" value="1">{$onenews.createtime|date="Y-m-d",###}<else/>{:date('Y-m-d')}</eq></div>
	        <div class="img" id="MsgImgDetail"><eq name="update" value="1"><a href="{$onenews.configs.ImgPath}" target="_blank"><img src="{$onenews.configs.ImgPath}"/></a><else/>封面图片</eq></div>
	        <div class="txt"><eq name="update" value="1">{$onenews.configs.BriefDescription}</eq></div>
	    </div>
        <div class="m_righter">
            <div class="mod_form">
                <div class="jt"><img src="__PUBLIC__/Member/images/material/jt.gif" /></div>
                <div class="m_form">
                    <span class="fc_red">*</span> 标题<br />
                    <div class="input"><input name="Title" value="{$onenews.configs.Title}" type="text" /></div>
                    <div class="blank20"></div>
                    <span class="fc_red">*</span> 封面图片 <span class="tips">大图尺寸建议：640*360px</span><br />
                    <div class="blank6"></div>
                    <div><input name="FileUpload" id="MsgFileUpload" type="file" /><input type="hidden" name="ImgPath" value="{$onenews.configs.ImgPath}" /></div>
                    <div class="blank12"></div>
                    简短介绍<br />
                    <div><textarea name="BriefDescription">{$onenews.configs.BriefDescription}</textarea></div>
                    <div class="blank20"></div>
                    <span class="fc_red">*</span> 链接页面<br />
                    <div class="input">
                        <select name='Url'>
                            
                            <include file="Public/linkurl" />
                           
                   </select><input name="oUrl" value="{$onenews.configs.Url}" type="hidden" /></div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="button"><input type="submit" class="btn_green" name="submit_button" value="提交保存" /><a href="{:U('Material/index')}" class="btn_gray">返回</a></div>
        <input type="hidden" name="MId" value="{$onenews['id']}" />
        <input type="hidden" name="msgtype" value="onenews" />
    </form>
</div>
</block>